/*
 * Backup.java
 *
 * Created on March 28, 2007, 9:49 AM
 *
 */

package edu.byu.isys413.samlam;

/**
 * The RevenueSource object that represents the backup plan
 * @author Sam
 */
public class Backup extends RevenueSource {
    /**size of backup plan in gigabytes*/
    private int size;
    /**starting date of the backup program*/
    private String startDate;
    /**ending date of the backup program*/
    private String endDate;
    
    
    
    
    /** Creates a new instance of Backup */
    public Backup(String id) {
       super(id);
    }

    /**gets the description
     * @return description of the backup plan
     */
    public String getDescription() {
        return description;
        
    }
    
    /** sets the description
     *@param description the description of the backup plan
     */
    public void setDescription(String description){
        this.description = description;
        this.setDirty(true);
    }

    /** gets size
     * @return size
     */
    public int getSize() {
        return size;
    }

    /**sets size
     *@param size size
     */
    public void setSize(int size) {
        this.size = size;
        this.setDirty(true);
    }

    /**gets starting date
     *@return starting date
     */
    public String getStartDate() {
        return startDate;
    }

    /**sets the starting date
     * @param startDate starting date
     */
    public void setStartDate(String startDate) {
        this.startDate = startDate;
        this.setDirty(true);
    }

    /** gets the ending date
     * @return ending date
     */
    public String getEndDate() {
        return endDate;
    }

    /** sets the ending date
     * @param endDate ending date
     */
    public void setEndDate(String endDate) {
        this.endDate = endDate;
        this.setDirty(true);
    }
    
}
